// 基于template/src/widgets/{{appEntities}}/{{ctrls@PANEL}}-panel/{{spinalCase ctrl.codeName}}-panel-model.ts.hbs生成
import { IPanelModel } from '@/core';
function getModel(): IPanelModel {
    return {
        cssName: "",             
        caption: '',
        controlType: 'PANEL',
        codeName: 'Listpanel',
        entityCodeName: 'IBIZBOOK',
        name: 'list_itempanel',
        noSort: '',
        sortDir: '',
        limit: 1000, 
        dataMode: 0,
        layoutMode: "TABLE_24COL",
        rootLayoutDetailNames: ["container1"],
        layoutItems: getLayoutItems(),   
    }
}

function getLayoutItems() {
    return {
        container1: {
            name: "container1",
            type: "ITEMLAYOUT",
            caption: "容器",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "CONTAINER",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "FLEX",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: 0,
            flexParams: {
                align: "",
                dir: "column",
                vAlign: "",
            },
            details: ["container4","container2","container7","container8","container6"],
            dataRegionType: "INHERIT",
            dataSourceType: "",
        },
        container4: {
            name: "container4",
            type: "ITEMLAYOUT",
            caption: "容器",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "CONTAINER",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "FLEX",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "row",
                vAlign: "",
            },
            parentName: "container1",
            details: ["field_image","field_text_dynamic"],
            dataRegionType: "INHERIT",
            dataSourceType: "",
        },
        field_image: {
            name: "field_image",
            type: "ITEMLAYOUT",
            caption: "图片(动态)",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "FIELD",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 80,
            layoutWidth: 80,
            heightMode: "PX",
            widthMode: "PX",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container4",
            required: false,
            dataItemName: "icon",
            predefinedType: "FIELD_IMAGE",
            editorDynaClass: "",
        },
        
        field_text_dynamic: {
            name: "field_text_dynamic",
            type: "ITEMLAYOUT",
            caption: "文本(动态)",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "FIELD",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "OUTERMEDIUM",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container4",
            required: false,
            dataItemName: "ibizbookname",
            predefinedType: "FIELD_TEXT_DYNAMIC",
            editorDynaClass: "",
            renderMode: "TEXT_DYNAMIC",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "LEFT",
        },
        
        
        container2: {
            name: "container2",
            type: "ITEMLAYOUT",
            caption: "容器",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "CONTAINER",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "FLEX",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "row",
                vAlign: "",
            },
            parentName: "container1",
            details: ["static_label1","field_text_dynamic1"],
            dataRegionType: "INHERIT",
            dataSourceType: "",
        },
        static_label1: {
            name: "static_label1",
            type: "ITEMLAYOUT",
            caption: "标签",
            titleBarCloseMode: 0,
            isShowCaption: true,
            sysCss: "",
            itemType: "RAWITEM",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 80,
            heightMode: "",
            widthMode: "PX",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container2",
            predefinedType: "STATIC_LABEL",
            contentType: "RAW",
            contentStyle: ``,
            rawContent: `作者：`,
            htmlContent: ``,
            renderMode: "PARAGRAPH",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "RIGHT",
        },
        
        field_text_dynamic1: {
            name: "field_text_dynamic1",
            type: "ITEMLAYOUT",
            caption: "文本(动态)",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "FIELD",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container2",
            required: false,
            dataItemName: "author",
            predefinedType: "FIELD_TEXT_DYNAMIC",
            editorDynaClass: "",
            renderMode: "TEXT_DYNAMIC",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "LEFT",
        },
        
        
        container7: {
            name: "container7",
            type: "ITEMLAYOUT",
            caption: "容器",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "CONTAINER",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "FLEX",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "row",
                vAlign: "",
            },
            parentName: "container1",
            details: ["static_label3","field_text_dynamic2"],
            dataRegionType: "INHERIT",
            dataSourceType: "",
        },
        static_label3: {
            name: "static_label3",
            type: "ITEMLAYOUT",
            caption: "标签",
            titleBarCloseMode: 0,
            isShowCaption: true,
            sysCss: "",
            itemType: "RAWITEM",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 80,
            heightMode: "",
            widthMode: "PX",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container7",
            predefinedType: "STATIC_LABEL",
            contentType: "RAW",
            contentStyle: ``,
            rawContent: `借阅数量：`,
            htmlContent: ``,
            renderMode: "PARAGRAPH",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "RIGHT",
        },
        
        field_text_dynamic2: {
            name: "field_text_dynamic2",
            type: "ITEMLAYOUT",
            caption: "文本(动态)",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "FIELD",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container7",
            required: false,
            dataItemName: "booknumber",
            predefinedType: "FIELD_TEXT_DYNAMIC",
            editorDynaClass: "",
            renderMode: "TEXT_DYNAMIC",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "LEFT",
        },
        
        
        container8: {
            name: "container8",
            type: "ITEMLAYOUT",
            caption: "容器",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "CONTAINER",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "FLEX",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "row",
                vAlign: "",
            },
            parentName: "container1",
            details: ["static_label4","field_text_dynamic4"],
            dataRegionType: "INHERIT",
            dataSourceType: "",
        },
        static_label4: {
            name: "static_label4",
            type: "ITEMLAYOUT",
            caption: "标签",
            titleBarCloseMode: 0,
            isShowCaption: true,
            sysCss: "",
            itemType: "RAWITEM",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 80,
            heightMode: "",
            widthMode: "PX",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container8",
            predefinedType: "STATIC_LABEL",
            contentType: "RAW",
            contentStyle: ``,
            rawContent: `书籍描述：`,
            htmlContent: ``,
            renderMode: "PARAGRAPH",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "RIGHT",
        },
        
        field_text_dynamic4: {
            name: "field_text_dynamic4",
            type: "ITEMLAYOUT",
            caption: "文本(动态)",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "FIELD",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container8",
            required: false,
            dataItemName: "subtext",
            predefinedType: "FIELD_TEXT_DYNAMIC",
            editorDynaClass: "",
            renderMode: "TEXT_DYNAMIC",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "LEFT",
        },
        
        
        container6: {
            name: "container6",
            type: "ITEMLAYOUT",
            caption: "容器",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "",
            itemType: "CONTAINER",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "FLEX",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 0,
            heightMode: "",
            widthMode: "",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "",
            spacingTop: "",
            hAlignSelf: "",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "row",
                vAlign: "",
            },
            parentName: "container1",
            details: ["field_text_dynamic5","field_text_dynamic3","field_text_dynamic6","button_calluilogic1"],
            dataRegionType: "INHERIT",
            dataSourceType: "",
        },
        field_text_dynamic5: {
            name: "field_text_dynamic5",
            type: "ITEMLAYOUT",
            caption: "文本(动态)",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "book-type",
            itemType: "FIELD",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 40,
            heightMode: "",
            widthMode: "PX",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "OUTERSMALL",
            spacingTop: "",
            hAlignSelf: "CENTER",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container6",
            required: false,
            dataItemName: "type",
            predefinedType: "FIELD_TEXT_DYNAMIC",
            editorDynaClass: "",
            renderMode: "TEXT_DYNAMIC",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "CENTER",
        },
        
        field_text_dynamic3: {
            name: "field_text_dynamic3",
            type: "ITEMLAYOUT",
            caption: "文本(动态)",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "book-press",
            itemType: "FIELD",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 150,
            heightMode: "",
            widthMode: "PX",
            spacingBottom: "",
            spacingLeft: "OUTERSMALL",
            spacingRight: "OUTERSMALL",
            spacingTop: "",
            hAlignSelf: "CENTER",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container6",
            required: false,
            dataItemName: "press",
            predefinedType: "FIELD_TEXT_DYNAMIC",
            editorDynaClass: "",
            renderMode: "TEXT_DYNAMIC",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "CENTER",
        },
        
        field_text_dynamic6: {
            name: "field_text_dynamic6",
            type: "ITEMLAYOUT",
            caption: "文本(动态)",
            titleBarCloseMode: 0,
            isShowCaption: false,
            sysCss: "book-price",
            itemType: "FIELD",    
            codeName: "",
            itemStyle: "DEFAULT",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 50,
            heightMode: "",
            widthMode: "PX",
            spacingBottom: "",
            spacingLeft: "OUTERSMALL",
            spacingRight: "OUTERSMALL",
            spacingTop: "",
            hAlignSelf: "CENTER",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container6",
            required: false,
            dataItemName: "price",
            predefinedType: "FIELD_TEXT_DYNAMIC",
            editorDynaClass: "",
            renderMode: "TEXT_DYNAMIC",
            wrapMode: "NOWRAP",
            vAlign: "MIDDLE",
            hAlign: "CENTER",
        },
        
        button_calluilogic1: {
            name: "button_calluilogic1",
            type: "ITEMLAYOUT",
            caption: "无处理按钮",
            titleBarCloseMode: 0,
            isShowCaption: true,
            sysCss: "",
            itemType: "BUTTON",    
            codeName: "",
            itemStyle: "INFO",
            dynaClass: "",
            labelDynaClass: "",
            labelCssStyle: "",
            visible: true,
            disabled: false,
            layout: "",
            layoutPos: "",
            layoutHeight: 0,
            layoutWidth: 100,
            heightMode: "",
            widthMode: "PX",
            spacingBottom: "",
            spacingLeft: "",
            spacingRight: "OUTERSMALL",
            spacingTop: "",
            hAlignSelf: "CENTER",
            vAlignSelf: "",
            userTag:'',
            userTag2:'',
            flexGrow: -1,
            flexParams: {
                align: "",
                dir: "",
                vAlign: "",
            },
            parentName: "container6",
            xDataCtrlName: "",
            buttonStyle: "INFO",
            borderStyle: "",
            contentStyle: ``,
            iconAlign: "",
            renderMode: "BUTTON",
            captionItemName:"",
        },
        
        
        
    }
}

export const model = getModel();